package com.unicom.netpd.rpa.constant;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 统一返回码
 *
 * @author liup351
 */
@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum ResponseCodeEnum {

    /*

     */
    SUCCESS(200,"处理成功"),
    ERROR(-1,"统一错误码"),
    UNAUTHORIZED(401,"未授权"),
    FORBIDDEN(403,"禁止访问"),
    NOTFOUND(404,"找不到对应资源"),
    PARAM_EMPTY(405,"参数[{0}]为空"),
    ERROR_1(406,"验证错误：{0}"),
    ;

    @ApiModelProperty(value = "业务返回码")
    private int code;

    @ApiModelProperty(value = "中文描述")
    private String message;

}
